package com.yckj.day07;

/**
 * TODO 使用equals()比较
 *
 * @author shengyuee
 * @version 1.0
 * 2025/7/24 15:04
 */
public class Teacher2Test {
    public static void main(String[] args) {
        Teacher2 teacher2 = new Teacher2("101",8000);
        Teacher2 teacher22 = new Teacher2("101",8000);
        System.out.println(teacher2 == teacher22);
        System.out.println(teacher2.equals(teacher22));

    }
}
